import request from '@/utils/request'
export default {
        //1.轮播图列表，带条件查询和分页的
        getSwiper(current, limit) {
            return request({
                url: `/api/cms/swiper/${current}/${limit}/swipers`,
                method: 'get'
            })
        },
        //2.删除轮播图    
        deleteSwiperById(id){
            return request({
                url: `/api/cms/swiper/${id}/swiper`,
                method: 'delete'
            })
        },
        //3.添加轮播图
        addSwiper(params){
            return request({
                url: `/api/cms/swiper/swiper`,
                method: 'post',
                data:params
            })
        },

        //4.修改轮播图
        updataSwiper(params){
            return request({
                url: `/api/cms/swiper/swiper`,
                method: 'put',
                data:params
            })

        }
}